%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PREAMBULO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Tipo de documento
\documentclass[11pt,a4paper]{report}
% Codificacion de caracteres
\usepackage[utf8]{inputenx}
% Para tildes y otros signos del castellano
% \usepackage[spanish]{babel}

% Separacion entre parrafos
\setlength{\parskip}{6pt}
% Margenes de hoja
\usepackage{anysize}
\marginsize{3cm}{3cm}{2cm}{2cm}
% Encabezado de pagina
\usepackage{fancyhdr}
% Estilo de pagina
\pagestyle{fancy}\fancyhf{}
% Numeracion de pagina
\fancyfoot[RO,LE]{\thepage}

% Para insertar figuras en un punto exacto
\usepackage{float}
% Para tachar formulas
\usepackage{cancel}

% Para vincular los índices y referencias
\usepackage[colorlinks=false]{hyperref}
% Incrustado de imagenes                 
\usepackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\graphicspath{{img/}}
% Para usar colores                                            
\usepackage{color}
% Para insertar codigo fuente
\usepackage{listings}
% Para resaltar el codigo fuente
\usepackage{times}
% Para enumeracion automatica de teoremas, definiciones, etc
\usepackage[framed]{ntheorem}
\usepackage{framed}
% Para letras dobles (conjuntos matematicos)
\usepackage{amsfonts}
% Para hacer diagramas conmutativos completos
\usepackage{pb-diagram}
% Para símbolos matemáticos
\usepackage{amsmath,amssymb,latexsym}
% Para el símbolo de euro
\usepackage{eurosym}

% Configuración del entorno theorem
\theorembodyfont{\upshape}
%\newframedtheorem{definicion}{{Definición}}[chapter]
%\newframedtheorem{teorema}{{Teorema}}[chapter]
%\newframedtheorem{proposicion}{{Proposición}}[chapter]
%\newtheorem{ejemplo}{{Ejemplo}}[chapter]
%\newtheorem{ejercicio}{{Ejercicio}}[chapter]
\setlength{\theorempreskipamount}{0mm}
\setlength{\theorempostskipamount}{0mm}

% Configuración del entorno listings
\definecolor{gray45}{gray}{.45}
\definecolor{gray70}{gray}{.70}
\definecolor{gray95}{gray}{.95}
\lstset{tabsize=4,
        showspaces=false,
        showtabs=false,
        frame=Ltb,
        framerule=0pt,
        aboveskip=0.5cm,
        framextopmargin=3pt,
        framexbottommargin=3pt,
        framexleftmargin=.4cm,
        framesep=.4pt,
        rulesep=.4pt,
        rulesepcolor=\color{gray70},
        stringstyle=\ttfamily,
        showstringspaces = false,
        basicstyle=\small\ttfamily,
        commentstyle=\color{gray45},
        keywordstyle=\bfseries,
        numbers=left,
        numbersep=15pt,
        numberstyle=\tiny,
        numberfirstline = true,
        breaklines=true,
        stepnumber=1
        }
% En cada inserción de listings:
\lstset{firstnumber=1,
        backgroundcolor=\color{white},
        xleftmargin=0.75cm}          

% Renombramientos:
%\renewcommand\chaptername{Capítulo}
\renewcommand\contentsname{Índice general}
\renewcommand\figurename{Figura}
\renewcommand\lstlistingname{Fragmento de código}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PORTADA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\author{Jorge Merino García \\ $<$Jorge.Merino1@alu.uclm.es$>$}
\title{\hrulefill \\ Escuela Superior de Informática \\ Universidad de Castilla-La Mancha \\ \includegraphics[width=3.5cm]{escudoInfBW} \\ Inteligencia Artificial \\ Práctica 1: Búsqueda}
\date{-\today- \\ \hrulefill}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOCUMENTO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\maketitle

\thispagestyle{empty}\tableofcontents\pagestyle{fancy}
\newpage

\section{Enunciado}

Dada una imagen de 15 niveles de grises, construir un camino con 3 tipos de piezas que una una esquina de la misma con la esquina opuesta en diagonal.

\begin{figure}[H]
\begin{center}
\includegraphics[width=0.5\textwidth]{mapa}
\caption{Mapa}
\end{center}
\end{figure}

\begin{figure}[H]
\begin{center}
\includegraphics[width=0.15\textwidth]{piezas}
\caption{Piezas}
\end{center}
\end{figure}

Pieza 1: Une una casilla con su adyacente en la misma dirección [cubre 1 casilla]\newline
Pieza 2: Une 2 casillas adyacentes en la misma dirección.\newline
Pieza 3: Cambia la dirección de su casilla adyacente.\newline

Costes asociados a las colocación de una pieza (ng/nivel de gris):

\begin{center}
	\begin{tabular}{|c|c|c|c|c|}
		\hline
		\textbf{Piezas} & \textbf{Forma} & \textbf{Altura}	&	\textbf{CostNorm}	& \textbf{CostAgua(ng=0)}	\\ \hline
		1					 & recta 			& 	ng*1				&	5						&	500							\\ \hline
		2 					 &	recta				&	ng*2 				&	3						&	300							\\ \hline
		3					 &	curva				&	ng*3				&	6						&	600							\\ 
		\hline
	\end{tabular}
\end{center}

\newpage

\include{e1}
\include{e2}
\include{e3}
\include{e4}
\include{e5}
\include{e6}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FIN DEL DOCUMENTO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{document}

